layui.use(["element", 'form','laydate'], function () {
  var element = layui.element,
    layer = layui.layer,
    laydate =layui.laydate,
    form = layui.form;
    laydate.render({
      elem: '.dataTime',
      format:'yyyy/MM/dd'
    });
});
// AssetCode  资产代码  

var vm = new Vue({
  el: '#app',
  data: {
    field1: ["理财产品名称", "产品募集资金总额（万元）", "产品编号", "募集起始日", '募集终止日', '产品成立日', '产品到期日'],
    disabled: true,
    ruleForm1: {
      field0: '建行“乾元-众享”理财产品2018第3期',
      field1: '1,000,000',
      field2: '00003',
      field3: '2018/11/6',
      field4: '2018/11/15',
      field5: '2018/11/16',
      field6: '2019/11/15',
    }
  },
  mounted: function () {
    this.init()
  },
  methods: {
    init: function () {
      localStorage.setItem('navigation','<a href="#">首页</a><span lay-separator="">/</span><a href="">产品查询</a><span lay-separator="">/</span><a><cite>理财产品录入</cite></a>');
    },
    submitForm: function () {
      layui.use('layer', function () {
        var layer = layui.layer;
        layer.confirm('操作成功！', {
          icon: 1,
          title: '提示',
          btnAlign: 'c',
          shade: false,
          btn: ['继续录入', '查看详情']
        }, function () {
          window.location.href = 'CPLR.html';
        }, function () {
          window.location.href = 'CPLR_XQ.html';
        });
      });
    },
    backEdit: function () {
      window.location.href = "CPLR.html";
    }
  }
})